/*
 * Copyright (c) 2018. czmc All Rights Reserved.
 * Author: czmc
 * Email: zxc6355533@163.com
 * Encoding: UTF-8
 */

package top.stime21.myneighbours.data.entity;

import java.io.Serializable;

/**
 * @author MZone
 */

public class User implements Serializable {
    private long userId;
    private String openId;
    private String type;
    private String phone;
    private String nickName;
    private String password;
    private int gender;// 0 female 1 male
    private String interest;
    private String signature;
    private String avatar;
    private long createTime;
    private long lastLoginTime;
    private String location;
    private int freezon;

    User(){}
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getInterest() {
        return interest;
    }

    public void setInterest(String interest) {
        this.interest = interest;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(long lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public int getFreezon() {
        return freezon;
    }

    public void setFreezon(int freezon) {
        this.freezon = freezon;
    }

    @Override
    public String toString() {
        return "User [userId=" + userId + ", openId=" + openId + ", type=" + type + ", phone=" + phone + ", nickName="
                + nickName + ", password=" + password + ", gender=" + gender + ", interest=" + interest + ", signature="
                + signature + ", avatar=" + avatar + ", createTime=" + createTime + ", lastLoginTime=" + lastLoginTime
                + ", location=" + location + ", freezon=" + freezon + "]";
    }

}
